import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/equipment_inspection_ledger_entity.g.dart';
export 'package:enterprise_v6_app/generated/json/equipment_inspection_ledger_entity.g.dart';

@JsonSerializable()
class EquipmentInspectionLedgerEntity {

	EquipmentInspectionLedgerEntity();

	factory EquipmentInspectionLedgerEntity.fromJson(Map<String, dynamic> json) => $EquipmentInspectionLedgerEntityFromJson(json);
  /// 获取状态显示 状态 1:待发起 2:待审批3：审批中 4：通过 5：驳回
	late int auditStatus = 0;
	late String companyCode = '';
	late String createBy = '';
	late String createById = '';
	late String createDate = '';
	late String deleted = '';
	late String equipmentId = '';
	late String equipmentName = '';
	late String equipmentType = '';
	late List<String> fileUrl = [];
	late String hazardCode = '';
	late String id = '';
	late String inspectionDate = '';
	late int inspectionResultStatus = 0;
	late String inspector = '';
	late String inspectorId = '';
  /// 是否是锅炉 1.是 2.否
	late String isBoiler = '';
	late int isOnTimeInspection = 0;
	late String notes = '';
	late List<String> outerFileUrl = [];
	late String outerInspectionDate = '';
	late int outerInspectionResultStatus = 0;
	late String outerInspector = '';
	late String outerInspectorId = '';
	late int outerIsOnTimeInspection = 0;
	late String outerNotes = '';
	late String updateBy = '';
	late String updateById = '';
	late String updateDate = '';

	Map<String, dynamic> toJson() => $EquipmentInspectionLedgerEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
